﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HomeModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:Resources.Common_HomePage%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="maincontent" id="tabcontent">
        <h2>
            <%:Resources.Common_HomePage%></h2>
        <% if (Model != null)
           {
               if (Model.IsActive == 0)
               { %>
        <div>
            <% using (Html.BeginForm("askforactive", "home", FormMethod.Post, new { name = "ask" }))
               { %>
            <input type="hidden" name="id" value="<%: Model.UserID %>" />
            <p>
                <%: Resources.Home_NoPermission %>
                <br /><br />
                <input type="submit" value="<%: Resources.Home_Apply_Btn %>" />
                <%:Resources.Home_ClickForPermission %>
            </p>
            <p>
                <%: Model.ActiveMsg%>
            </p>
            <%} %>
        </div>
        <%   }
               else if (Model.IsActive == 1)
               {
                  %>
        <p>
            <%: Resources.Home_PermissionDecline %>
        </p>
        <%      
               }
               else if (Model.IsActive == 2)
               {
        %>
        <p>
            <%: Resources.Home_WaitForPermission %>
        </p>
        <% 
}
               else if (Model.IsActive == 3)
               { %>
        <p>
            <%: Resources.Home_PermissionDisable %>
        </p>
        <%               }
           } %>
    </div>
    <script type="text/javascript">
        function clickpost() {
            ask.submint();
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <%--<link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/default/easyui.css")%>" />
    <link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/icon.css")%>" />
    <link href="<%:Url.Content("~/Content/css/icons.css")%>" rel="stylesheet" type="text/css" />--%>
    <link href="<%:Url.Content("~/Content/css/sendsms.css")%>" rel="stylesheet" type="text/css" />
    <%--<script src="<%:Url.Content("~/Content/js/jquery.bgiframe.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.easyui.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.mask.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.alcatel.sendsms.js")%>"></script>
    <script type="text/javascript">
        function onchanges() {
            document.getElementById("smsTemplate").value = document.getElementById("templates").value;
        }

        $(document).ready(function () {
            var $this = $("#sendSMS_CSS")
            $this.addClass("current")
        })
    </script>--%>
</asp:Content>